import {
  HTTP
} from "../utils/http.js"
class OilModel extends HTTP {
  // 获取油枪油号
  getGoodsAll(shopId) {
    return this.request({
      url: 'bj/bjShellAntMiniProgramService/getGoodsAll',
      data: {
        shopId
      },
      method: 'POST'
    })
  }
  // 匹配交易
  matchTradeByGoodsAndAmount(shopId,oilgunNo,deliveryCode,deliveryAmount) {
    return this.request({
      url: 'bj/bjShellAntMiniProgramService/matchTradeByGoodsAndAmount',
      data: {
        shopId,
        oilgunNo,
        deliveryCode,
        deliveryAmount
      },
      method: 'POST'
    })
  }
  // 匹配交易
  getUnpaidTrade() {
    return this.request({
      url: 'bj/bjShellAntMiniProgramService/getUnpaidTrade',
      data: {
        
      },
      method: 'POST'
    })
  }
  // 创建交易
  createTrade(parms) {
    return this.request({
      url: 'bj/bjShellAntMiniProgramService/createTrade',
      data: parms,
      method: 'POST'
    })
  }
  // 消费统一收单
  paymentRequest(parms) {
    return this.request({
      url: 'bj/bjShellAntMiniProgramService/paymentRequest',
      data: parms,
      method: 'POST'
    })
  }
}
export {
  OilModel
}